package com.chy.demo.entity;

import java.sql.Blob;
import java.util.Date;

public class News {
	private Integer id;
	private String titile;
	private String author;
	
	private Date date;
	
	//该属性为: author:title
	private String desc;
	
	private String content;
	
	private Blob image;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTitile() {
		return titile;
	}
	public void setTitile(String titile) {
		this.titile = titile;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Blob getImage() {
		return image;
	}
	public void setImage(Blob image) {
		this.image = image;
	}
	public News(String titile, String author, Date date) {
		super();
		this.titile = titile;
		this.author = author;
		this.date = date;
	}
	public News() {
		
	}
	@Override
	public String toString() {
		return "News [id=" + id + ", titile=" + titile + ", author=" + author + ", date=" + date + "]";
	}
	
}
